exponential function from a table